package com.zerdoor.service;

import com.zerdoor.alipay.config.AlipayConfig;

import java.util.Map;

/**
 * Created by xiaoji on 2015/2/13.
 */
public interface PayService {
    /**
     * 获取卖家支付宝信息
     * @return
     */
    public String getAlipayAccount();
    /**
     * 获取合作者身份ID
     * @return
     */
    public String getAlipayPartner();
    /**
     * 获取商家密匙
     * @return
     */
    public String getAlipayKey();


    /**
     * 充值前初始化查询记录
     * @param map
     * @throws Exception
     */
    public void addUserWallet(Map<String, Object> map) throws Exception;

    /**
     * 充值成功后调用
     * @param walletId 钱包记录编号
     * @throws Exception
     */
    public void updateUserWalletSuccess(int walletId) throws Exception;

    /**
     * 充值失败后调用
     * @param walletId 钱包记录编号
     * @throws Exception
     */
    public void updateUserWalletFail(int walletId) throws Exception;


}
